package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.enums.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * ovmal_banner:
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_banner")
@Alias("banner")
@Data
public class Banner implements Serializable {
    @ApiModelProperty(value = "")
    @TableField(value = "aid")
    @TableId
    private Long bid;

    @ApiModelProperty(value = "名称",allowEmptyValue=true,required = true)
    @Column(name = "banner_name")
    private String bannerName;

    @ApiModelProperty(value = "图片链接",allowEmptyValue=true,required = true)
    @Column(name = "banner_url")
    private String bannerUrl;

    @ApiModelProperty(value = "跳转链接")
    @Column(name = "banner_skip_url")
    private String bannerSkipUrl;

    @ApiModelProperty(value = "商品ID")
    @Column(name = "sid")
    private String sid;

    @ApiModelProperty(value = "排序",allowEmptyValue=true,required = true)
    @Column(name = "banner_sort")
    private Integer bannerSort;

    @ApiModelProperty(value = "状态 UpperShelf:上架  LowerShelf:下架")
    @Column(name = "banner_status")
    private UpperLowerShelfStatus bannerStatus;

    @ApiModelProperty(value = "跳转类型 LINK:链接 SHOP:商品",allowEmptyValue=true,required = true)
    @Column(name = "banner_type")
    private BannerTypeEnum bannerType;

    @ApiModelProperty(value = "商品分类 ONE:一元抢购 SHOP:普通商品")
    @Column(name = "banner_shop_type")
    private BannerShopTypeEnum bannerShopType;

    @ApiModelProperty(value = "显示位置  HOME:首页 ONEDOLLARRUSH:一元抢购 ",allowEmptyValue=true,required = true)
    @Column(name = "banner_position")
    private PositionTypeEnum bannerPosition;

    @ApiModelProperty(value = "")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "")
    @Column(name = "is_del")
    private IsDel isDel;

    @ApiModelProperty(value = "备注")
    @Column(name = "remark")
    private String remark;

    /**
     * ovmal_banner
     */
    private static final long serialVersionUID = 1L;
}
